using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SCSEngine.Utils.Entities.Process.Collision
{
    public class CollisionProcessManager : BaseGameProcessManager
    {
        protected override bool IsValidProcess(object process)
        {
            return process is ICollisionProcess;
        }

        public override void Run(Microsoft.Xna.Framework.Game game, Microsoft.Xna.Framework.GameTime gameTime)
        {
            foreach (ICollisionProcess collGP in this.Processes)
            {
                collGP.HandleCollision(gameTime);
            }
        }

        public override bool IsDrawProcess
        {
            get { return false; }
        }

        public override Type ProcessType
        {
            get { return typeof(ICollisionProcess); }
        }
    }
}
